/*
* Copyright (C) 2012-2014 qar
* License: http://www.gnu.org/licenses/gpl.html GPL version 2
*/

#ifndef ENCRYPTORNULL_H
#define ENCRYPTORNULL_H

#include <QtCore>

#include "crypto/ciphers/encryptor.h"

class EncryptorNull : public Encryptor
{
public:
    EncryptorNull();
    virtual ~EncryptorNull();

    virtual qint64 blockSize() const;
	virtual qint64 keySize() const;
	virtual QString getAlgorithmName() const;

    virtual void encrypt(const QByteArray &clearText, QByteArray &cipherText);

    virtual void decrypt(const QByteArray &cipherText, QByteArray &clearText);

    virtual bool toStream(QDataStream &);
	virtual bool fromStream(QDataStream &);
};

#endif // ENCRYPTORNULL_H
